package com.lazydong.apiforward.gateway.filter;

import org.springframework.cloud.gateway.route.Route;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.web.server.ServerWebExchange;

public interface CustomGlobalFilter {
    void beforeRequest(ServerHttpRequest request, Route route);

    void afterResponse(ServerHttpResponse response);

    default void webExchange(ServerWebExchange exchange) {

    }
}
